package com.ht.web_vr_home_tour_backend.config.data;

import java.util.concurrent.TimeUnit;

public class RedisConstants {

    // 用户缓存
    public static final String tb_UserInfo_keyPrefix = "tb:uid:user_info:";
    // 生成用户id
    public static final String icr_UserInfo_keyPrefix = "icr:uid:user_info:";

    // 对象信息缓存
    public static final String icr_ObjInfo_keyPrefix = "icr:uid:obj_info";
    public static final String tb_ObjInfo_Link_keyPrefix = "tb:obj_info:link:";
    public static final String tb_ObjInfo_Id_keyPrefix = "tb:obj_info:id:";

    // 对象类型缓存
    public static final String tb_ObjType_Type = "tb:obj_type:type"; // todo 重构对象类型的读写，缓存优先

    // 项目信息缓存
    public static final String icr_PojInfo_keyPrefix = "icr:uid:poj_info:";
    public static final String tb_PojInfo_Id_keyPrefix = "tb:poj_info:id:";

    // 缓存超时
    public static final long tb_Cache_Base_TTL = 60;
    public static final long CACHE_NULL_TTL = 2;

    public static TimeUnit timeUnit = TimeUnit.SECONDS;
}
